package edu.gatech.oad.antlab.m7final;
import java.awt.Dimension;

import javax.swing.DefaultListModel;
import javax.swing.JPanel;
import javax.swing.JList;
import javax.swing.JScrollPane;
import net.miginfocom.swing.MigLayout;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import java.awt.Color;

/**
 * The WagonInventoryPanel2 class displays the items in the Wagon Inventory
 * @author Amy Lambeth
 */
public class WagonInventoryPanel2 extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8701755645915263108L;
	
	private JLabel label_1, label_2, label_3, label_4, label_5,
	label_6, label_7, label_8, label_9, label_10;
	/**
	 * This is the panel holding the Store's inventory/items for sale
	 * 
	 * @author Amy Lambeth
	 * @version 1.0 10/19/2011
	 * 
	 */
	

	/**
	 * Create the panel.
	 */
	public WagonInventoryPanel2(Inventory inventory) {
		setBackground(new Color(189, 183, 107));
		setLayout(null);
		
		JLabel lblPrice = new JLabel("Price");
		lblPrice.setBounds(82, 16, 30, 16);
		add(lblPrice);
		
		JLabel lblQuantity = new JLabel("#");
		lblQuantity.setBounds(268, 16, 8, 16);
		lblQuantity.setHorizontalAlignment(SwingConstants.CENTER);
		add(lblQuantity);
		
		JLabel lblOxen = new JLabel("Oxen");
		lblOxen.setBounds(16, 43, 33, 16);
		add(lblOxen);
		
		JLabel lblNewLabel = new JLabel("Weight");
		lblNewLabel.setBounds(174, 16, 43, 16);
		add(lblNewLabel);
		
		JLabel lblfor = new JLabel("$40 (for 2)");
		lblfor.setBounds(82, 43, 66, 16);
		add(lblfor);
		
		JLabel lblnone = new JLabel("(none)");
		lblnone.setBounds(174, 43, 39, 16);
		add(lblnone);
		
		label_4 = new JLabel("0");
		label_4.setBounds(268, 43, 16, 16);
		label_4.setHorizontalAlignment(SwingConstants.CENTER);
		add(label_4);
		
		JLabel lblFood = new JLabel("Food");
		lblFood.setBounds(16, 77, 31, 16);
		add(lblFood);
		
		JLabel lblfor_1 = new JLabel("$1");
		lblfor_1.setBounds(82, 77, 16, 16);
		add(lblfor_1);
		
		JLabel lblLbs = new JLabel("5 lbs");
		lblLbs.setBounds(174, 77, 31, 16);
		add(lblLbs);
		
		label_5 = new JLabel("0");
		label_5.setBounds(268, 77, 16, 16);
		label_5.setHorizontalAlignment(SwingConstants.CENTER);
		add(label_5);
		
		JLabel lblClothing = new JLabel("Clothing");
		lblClothing.setBounds(16, 112, 54, 16);
		add(lblClothing);
		
		JLabel label = new JLabel("$10");
		label.setBounds(82, 112, 24, 16);
		add(label);
		
		JLabel lblLbs_1 = new JLabel("2 lbs");
		lblLbs_1.setBounds(174, 112, 31, 16);
		add(lblLbs_1);
		
		label_6 = new JLabel("0");
		label_6.setBounds(268, 112, 16, 16);
		label_6.setHorizontalAlignment(SwingConstants.CENTER);
		add(label_6);
		
		JLabel lblAmmunition = new JLabel("Ammo");
		lblAmmunition.setBounds(16, 145, 41, 16);
		add(lblAmmunition);
		
		JLabel lblRounds = new JLabel("$2 (for 20)");
		lblRounds.setBounds(82, 145, 66, 16);
		add(lblRounds);
		
		JLabel lblLbs_5 = new JLabel("3 lbs");
		lblLbs_5.setBounds(174, 145, 31, 16);
		add(lblLbs_5);
		
		label_7 = new JLabel("0");
		label_7.setBounds(268, 145, 16, 16);
		label_7.setHorizontalAlignment(SwingConstants.CENTER);
		add(label_7);
		
		JLabel lblWheel = new JLabel("Wheel");
		lblWheel.setBounds(16, 178, 37, 16);
		add(lblWheel);
		
		label_1 = new JLabel("$10");
		label_1.setBounds(82, 178, 24, 16);
		add(label_1);
		
		JLabel lblLbs_2 = new JLabel("75 lbs");
		lblLbs_2.setBounds(174, 178, 39, 16);
		add(lblLbs_2);
		
		label_8 = new JLabel("0");
		label_8.setBounds(268, 178, 16, 16);
		label_8.setHorizontalAlignment(SwingConstants.CENTER);
		add(label_8);
		
		JLabel lblAxle = new JLabel("Axle");
		lblAxle.setBounds(16, 212, 28, 16);
		add(lblAxle);
		
		label_2 = new JLabel("$10");
		label_2.setBounds(82, 212, 24, 16);
		add(label_2);
		
		JLabel lblLbs_3 = new JLabel("125 lbs");
		lblLbs_3.setBounds(174, 212, 47, 16);
		add(lblLbs_3);
		
		label_9 = new JLabel("0");
		label_9.setBounds(268, 212, 16, 16);
		label_9.setHorizontalAlignment(SwingConstants.CENTER);
		add(label_9);
		
		JLabel lblTongue = new JLabel("Tongue");
		lblTongue.setBounds(16, 245, 47, 16);
		add(lblTongue);
		
		label_3 = new JLabel("$10");
		label_3.setBounds(82, 245, 24, 16);
		add(label_3);
		
		JLabel lblLbs_4 = new JLabel("100 lbs");
		lblLbs_4.setBounds(174, 245, 47, 16);
		add(lblLbs_4);
		
		label_10 = new JLabel("0");
		label_10.setBounds(268, 245, 16, 16);
		label_10.setHorizontalAlignment(SwingConstants.CENTER);
		add(label_10);



	}
	
	/**
	 * Gets a list of the quantities of items
	 * @return A list of quantity labels
	 */
	public JLabel[] getQuantityLabels(){
		JLabel[] arrayLabel = new JLabel[7];
		arrayLabel[0] = label_4;
		arrayLabel[1] = label_5;
		arrayLabel[2] = label_6;
		arrayLabel[3] = label_7;
		arrayLabel[4] = label_8;
		arrayLabel[5] = label_9;
		arrayLabel[6] = label_10;

		return arrayLabel;
		
				
	}

}
